from fastapi import APIRouter, Depends

from app.api.scheduler.services.scheduler_service import SchedulerService

router = APIRouter(prefix="/scheduler", tags=["定时任务"])

@router.get("/add/job")
async def add_job(scheduler_service: SchedulerService = Depends()):
    return await scheduler_service.add_job()